<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/reset.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/form.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/toolbar.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/general.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl?>/styles/login.css" type="text/css" media="screen" />
        <?php Yii::app()->ClientScript->registerCoreScript('jquery'); ?>
        <style type="text/css">
        
        </style>
    </head>
    
    <body>
        <div id="header"></div>        
        <div id="main">
            <div class="inner">
				<div class="login">
					<div class="form">
						<a href="#"><img src="<?php echo themeUrl(); ?>/images/logo_2.jpg" class="icon" /></a>
                        <?php if ($request_password_suc) : ?>
                            <div style="margin-top: 10px;"><b>You forgot your password. You need a password to login to Administrator Panel. So we will generate a new password for you. But, at first, we will send you an e-mail to ask you to confirm your request. Please check your mail box right now.</b></div>
                        <?php else : ?>
                            <?php
							    $form=$this->beginWidget('CActiveForm', array(
							    'id'=>'user-login-form',
                                'enableAjaxValidation'=>false,
							    'enableClientValidation'=>true,
                                'clientOptions' => array(
                                    'validateOnSubmit' => true,
                                )
							    ));
						    ?>                        						
						        <?php if (count($errorMsgs) > 0) : ?>
                                    <div class="errorMessage" style="padding-left: 0px;">
                                    <?php foreach($errorMsgs as $msg) : ?>
                                        <p><?php echo $msg; ?></p>
                                    <?php endforeach; ?>
                                    </div>
                                <?php endif; ?>
							    <div class="row">
								    <?php echo $form->labelEx($user,'email'); ?>
								    <?php echo $form->textField($user, 'email'); ?>
								    <?php echo $form->error($user,'email'); ?>
							    </div>                       
							    <div class="row buttons">
								      <?php echo CHtml::submitButton('Submit', array('class'=>'submit-button')); ?>
                                      <?php echo FHtml::link('Back to Login', $this->createUrl('/Admin/default/login'), array('title' => 'Login')); ?>
							    </div>
						    <?php $this->endWidget(); ?>
                        <?php endif; ?>                    
					</div>
					<div class="copyright">&copy; 2012 - IEC Admin</div>
				</div>
                
            </div>
        </div>
        
        <div id="footer"></div>
    </body>
</html>	